<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<button>open</button>
</body>
<script src="../jquery.js"></script>
<script src="jquery.ddselecter.js"></script>
<script>
    jQuery(function($){
        $('button').ddselecter({
            onChange:function(){
                alert('你选择的是：'+this.text+' 值为：'+this.value);
                if(!this.hasSub){
                    this.hide();
                }
            }
        });
    });
</script>
</html>